package com.changgou.order.config;

import com.changgou.entity.FeignRequestInterceptor;
import com.changgou.entity.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UtilConfig {
    @Bean
    public FeignRequestInterceptor feignRequestInterceptor() {
        return new FeignRequestInterceptor();
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1, 1);
    }
}
